package com.wzq.design.business.base.dept.dto;

import com.wzq.ssm.parent.tools.validation.ValidGroup;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * @author wangzhiqiang
 * @since 2023/6/20 15:05
 */
@Data
public class BaseDeptDto {
    private String id;
    /**
     * 上级编号
     */
    private String parentId = "";
    /**
     * 部门路径
     */
    private String parentIds;
    /**
     * 部门名称
     */
    @NotBlank(message = "部门名称不能为空", groups = {ValidGroup.Add.class})
    private String name;
    /**
     * 排序码
     */
    private Integer sortIndex;
}
